package cn.edu.nyist.service.impl;

import cn.edu.nyist.entity.Brand;
import cn.edu.nyist.mapper.BrandMapper;
import cn.edu.nyist.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author mumucgq
 * @create 2019-12-03 14:56
 */
@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
   private BrandMapper mapper;

    @Override
    public List<Brand> getAllBrandList() {
       return mapper.getAllBrandList();
    }

    @Override
    public void addBrand(Brand brand) {
        mapper.addBrand(brand);
    }

    @Override
    public void deleteBrandById(Integer id) {
        mapper.deleteBrandById(id);
    }
}
